//
// Created by wze-zero on 2024/9/16 016.
//
#include <iostream>
#include <vector>

using namespace std;

int main() {
    int count, num;
    vector<int> vec;
    cin >> count;
    for (int i = 0; i < count; ++i) {
        cin >> num;
        vec.push_back(num);
    }
    cin >> num;
    count = 0;
    for (vector<int>::iterator it = vec.begin(); it != vec.end(); ++it) {
        if (num == *it) {
            count++;
        }
    }
    cout << count << endl;
    return 0;
}